package com.tvein.sanguo.controller.Game.user
{
	//flash
	//pureMVC
	import org.puremvc.as3.multicore.interfaces.ICommand;
	import org.puremvc.as3.multicore.interfaces.INotification;
	import org.puremvc.as3.multicore.utilities.fabrication.patterns.command.SimpleFabricationCommand;
	//custom
	import com.tvein.sanguo.common.CommonConstants;
	import com.tvein.sanguo.model.SFSProxy;
//
	public class RoleLogin extends SimpleFabricationCommand implements ICommand
	{
		private var sfsData:SFSProxy;
		
		override public function execute(notification:INotification) : void
		{
			sfsData = facade.retrieveProxy(SFSProxy.NAME) as SFSProxy;
			
			sendNotification(CommonConstants.SYSTEM_CONSOLE, ["-gameStatus", [1, "系统处理中，请稍候..."]]);
			
			var cmdjso:Object = new Object();
			cmdjso["param0"] = notification.getBody()[1];
			
			sfsData.send("RoleLogin", cmdjso);
		}
		
		//Custom
	}
}